package com.loong.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 数据库订单项
 */
public class Orders implements Serializable {
    private static final long serialVersionUID = 1L;
    private String oid;//订单编号
    private Integer uid;//用户编号
    private Integer aid;//地址编号
    private Address address;//地址
    private BigDecimal oprice;//订单总价
    private Date otime;//下单时间
    private Integer ostate;//订单状态 1-待付款 2-待发货 3-待收货 4-待评价 4-已完成 5-已取消

    private List<Item> items;//订单项列表

    public List<Item> getItems() {
        return items;
    }

    public void setItems(List<Item> items) {
        this.items = items;
    }

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    public String getOid() {
        return oid;
    }

    public void setOid(String oid) {
        this.oid = oid;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getAid() {
        return aid;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    public BigDecimal getOprice() {
        return oprice;
    }

    public void setOprice(BigDecimal oprice) {
        this.oprice = oprice;
    }

    public Date getOtime() {
        return otime;
    }

    public void setOtime(Date otime) {
        this.otime = otime;
    }

    public Integer getOstate() {
        return ostate;
    }

    public void setOstate(Integer ostate) {
        this.ostate = ostate;
    }

    @Override
    public String toString() {
        return "Orders{" +
                "oid='" + oid + '\'' +
                ", uid=" + uid +
                ", aid=" + aid +
                ", oprice=" + oprice +
                ", otime=" + otime +
                ", ostate=" + ostate +
                '}';
    }
}
